Skip to main content

Odds and Hazard Ratios

As the name suggests, these are dimensionless ratios. They each compare two groups (e.g. treated vs. untreated, smokers vs. non-smokers) but they compare different things.

TL;DR
MeasureCompares…”No effect”Typical source
Risk Ratio (RR)Probabilities of the outcome1Cohort studies, RCTs
Odds Ratio (OR)Odds of the outcome1Case-control, logistic regression
Hazard Ratio (HR)Instantaneous rates of the outcome over time1Survival analysis, Cox models

Above 1: the outcome is more likely/faster in the exposed group. Below 1: less likely/slower.

Probability vs. Odds​

Odds compares the probability of something happening to the probability of it not happening.

odds=p1−pp=odds1+odds\text{odds} = \frac{p}{1 - p} \qquad\qquad p = \frac{\text{odds}}{1 + \text{odds}}

Example: 20 out of 100 people get the flu.

  • Probability: 20100=0.2\frac{20}{100} = 0.2 (“20% of people get it”)
  • Odds: 2080=0.25\frac{20}{80} = 0.25 (“for every 1 person who gets it, 4 don’t” or “1 to 4”)

Probability lives in [0,1][0, 1]. Odds live in [0,∞)[0, \infty). When pp is small they’re nearly the same number: p=0.01p = 0.01 gives odds =0.0101= 0.0101. But when pp is large they diverge fast: p=0.9p = 0.9 gives odds =9= 9. This is very useful.

ppodds
0.010.01
0.100.11
0.250.33
0.501
0.753
0.909
0.9999
In the Real World™ 🐎🐎🐎

A horse at “3 to 1 against” is expected to lose 3 times for every 1 win. Odds of winning =13= \frac{1}{3}, so p=1/31+1/3=14p = \frac{1/3}{1 + 1/3} = \frac{1}{4}.

Risk and Odds Ratios​

Take a 2×2 table. Here’s a made-up study of smoking and some disease:

DiseaseNo DiseaseTotal
Smokers30 ⓐ70 ⓑ100
Non-smokers10 ⓒ90 ⓓ100

Risk Ratio compares probabilities:

RR=a/(a+b)c/(c+d)=30/10010/100=3RR = \frac{a / (a+b)}{c / (c+d)} = \frac{30/100}{10/100} = 3

“Smokers are 3 times as likely to get the disease.”

Odds Ratio compares… well… odds:

OR=a/bc/d=adbc=30×9070×10≈3.86OR = \frac{a / b}{c / d} = \frac{ad}{bc} = \frac{30 \times 90}{70 \times 10} \approx 3.86

“Smokers have 3.86 times the odds of getting the disease.” Note that it is not “3.86 times as likely”. That’s the most common mistake with ORs!

When OR and RR are friends​

When the outcome is rare (rule of thumb: under ~10%), odds ≈\approx probability, so OR ≈\approx RR. Same study but a rare disease, 1000 people per group:

DiseaseNo Disease
Smokers3997
Non-smokers1999

RR=3/10001/1000=3RR = \frac{3/1000}{1/1000} = 3 and OR=3×999997×1≈3.006OR = \frac{3 \times 999}{997 \times 1} \approx 3.006. Basically the same.

When the outcome is common, the OR is always further from 1 than the RR. So reading an OR as an RR exaggerates the effect.

Why even bother With Odds?​

Because sometimes you can’t get a risk.

  1. Case-control studies. You go find 100 people with lung cancer and 100 without, then ask who smoked. You picked the 50/50 split of disease, so “proportion of smokers with cancer” is meaningless. But the OR still works: it’s symmetric. The odds of smoking given cancer vs. no cancer gives the same OR as the odds of cancer given smoking vs. not.
  2. Logistic regression. The model is linear in the log-odds: log⁡(p1−p)=β0+β1x1+…\log\left(\frac{p}{1-p}\right) = \beta_0 + \beta_1 x_1 + \dots So eβ1e^{\beta_1} is the OR for a one-unit increase in x1x_1, holding everything else constant. If β1=0.7\beta_1 = 0.7, then e0.7≈2e^{0.7} \approx 2, and each unit of x1x_1 doubles the odds.

Hazards​

Risks and odds ask “did it happen by the end of the study?” Hazards ask “how fast is it happening right now, among the people it hasn’t happened to yet?”

The hazard h(t)h(t) is the instantaneous rate of the event at time tt, given you’ve survived (event-free) up to tt:

h(t)=lim⁡Δt→0P(t≤T<t+Δt∣T≥t)Δth(t) = \lim_{\Delta t \to 0} \frac{P(t \le T < t + \Delta t \mid T \ge t)}{\Delta t}

Plain English: of the people still standing at time tt, what fraction go down in the next tiny slice of time (per unit time)?

Example: a hazard of 0.02 per month means that among patients still alive at the start of a month, roughly 2% will die during that month.

Car Analogy

Think of Hazard as the speedometer, how fast you’re going right now.

Cumulative risk (“40% died by year 5”) is like the odometer, how far you’ve gone in total.

The hazard can fluctuate over time but the cumulative risk only goes up☝️

Why Not Just Use Risk?​

Because in survival data:

  • People are followed for different lengths of time. Someone enrolled last month and someone enrolled 5 years ago can’t be compared with a simple ”% who died”.
  • People get censored: they drop out, move away, or the study ends before anything happens to them. You know they survived at least until some point, but not after.

Hazards handle both because they only ever look at the people still at risk at each moment.

Hazard Ratio​

HR=htreated(t)hcontrol(t)HR = \frac{h_{\text{treated}}(t)}{h_{\text{control}}(t)}

Example: a trial reports HR = 0.5 for a new drug vs. placebo. That means at any given moment, a patient on the drug who’s still alive has half the rate of dying of a comparable patient on placebo.

What it does not mean:

  • ❌ “Half as many people died.” Over a long enough time, everyone dies in both groups. HR is about the rate, not the final count.
  • ❌ “Patients lived twice as long.” That’s only (approximately) true under extra assumptions like a constant hazard.

You almost always get an HR from a Cox proportional hazards model, where eβe^{\beta} is the HR for a one-unit change in a covariate. Same deal as eβe^{\beta} being an OR in logistic regression.

The Proportional Hazards Assumption​

A single HR only makes sense if the ratio is roughly constant over time. The hazards themselves can rise and fall, but they have to move together.

  • ✅ Drug group’s hazard is always about half of placebo’s, whether it’s month 1 or month 36. One HR summarizes it well.
  • ❌ Surgery has a high hazard early (operating risk) but a low hazard later (it fixed the problem). The HR flips from >1 to < 1. A single “average” HR hides this. A hint you’re in this situation: the Kaplan-Meier survival curves cross.

Putting It Together​

Same question, “Does smoking affect lung cancer?”, three ways:

RadioValueInterpretation
RR3Smokers are 3x as likely to get lung cancer (by end of follow-up).
OR3.86Smokers have 3.86x the odds of lung cancer.
HR2.5At any moment, a cancer-free smoker develops cancer at 2.5x the rate of a cancer-free non-smoker.

All three are “1 = no effect” and all three point the same direction here. They just measure different things. Just make sure you don’t swap their interpretations!